import grpc
import server_pb2_grpc
import server_pb2

channel = grpc.insecure_channel('localhost:8151')
l=server_pb2_grpc.BaseServerStub(channel)
o=server_pb2_grpc.MetaServiceStub(channel)
reLeaseReq=server_pb2.LeaseReq(role=server_pb2.RepServer,sid='sid1',hex='hex1')
lease=l.RenewLease(reLeaseReq)
o.CheckActive(lease)